package user;

import operation.*;

import java.util.Scanner;

public class Regularusers extends User{
    public Regularusers(String name) {
        super(name);
        this.ioPerations=new IOPeration[]{
                new Exitoperation(),
                new FindOperation(),
                new Lendoperation(),
                new ReturnOperation()
        };
    }

    @Override
    public int menu() {
        System.out.println("1 普通用户");
        System.out.println("2 查找图书");
        System.out.println("3 借阅图书");
        System.out.println("0 归还图书");
        System.out.println("请输入您的操作");
        Scanner scanner =new Scanner(System.in);
        int choice=scanner.nextInt();
        return choice;
    }
}
